package chap4.Task1;
public class Task4 {
    public static void main(String[] args) {
        int i;
        double a, b;
        for (i = -99; i < 100000; i++) {
            a = Math.sqrt(i + 100);
            b = Math.sqrt(i + 268);
            if (((int) a == a) && ((int) b == b)) {
                System.out.println(i);
            }
        }

    }
}
